/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-23
 * Time: 22:20
 */
public class Main {
    public static void main(String[] args) {
        Shape rect = new Rectangle("红色", 4, 5);
        Shape circle = new Circle("绿色", 3);

        rect.draw();      // 输出：红色！！！
        circle.draw();    // 输出：绿色圆形!!!

        System.out.println(rect.getColorInfo());//输出：红色
        System.out.println(circle.getColorInfo());//输出：绿色
        System.out.println("矩形面积：" + rect.calculateArea());//输出：矩形面积：20.0
        System.out.println("圆形面积：" + circle.calculateArea());//输出：圆形面积：28.274333882308138
    }
}
